<!--电视机详情页 -->
<template>
  <div class="television">
    <div class="big-box">
    <h1 class="box-h1">家电</h1>
    <div class="box">
      <div class="box-shang">
        <router-link to="/watch">
        <div class="item" >
          <span class="blue-pro">新品</span>
          <div class="item-img" >
            <img
              src="//cdn.cnbj0.fds.api.mi-img.com/b2c-mimall-media/7e2127506fd2209f3115828404269d45.jpg"
              alt
            >
          </div>
          <div class="item-info">
           <h3>Redmi电视 MAX 98</h3>
            <p>客厅里的巨幕影院</p>
            <p class="price">零售价:19999元</p>
          </div>
        </div>
        </router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/03a9e7e96a09d256ca1badeec186c859.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>小米全面屏电视65英寸 E65X</h3>
            <p>全面屏设计</p>
            <p class="price">3299元</p>
          </div>
        </div></router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/20d36fbaa18625e4fe507af31e4e9f83.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>全面屏电视E43K</h3>
            <p>全面屏设计，海量内容</p>
            <p class="price">1449元</p>
          </div>
        </div></router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/9d8674cd21c486feff5328772ab9cf01.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>小米电视4A 70英寸</h3>
            <p>大屏更享受</p>
            <p class="price">3799元</p>
          </div>
        </div></router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/6bed167fc905bab57dee478bcf1e5e0d.JPG"
              alt
            >
          </div>
          <div class="item-info">
            <h3>米家互联网对开门冰箱540L</h3>
            <p>重磅新品福利特惠</p>
            <p class="price">2999元</p>
          </div>
        </div></router-link>
      </div>
      <div class="box-xia">
        <router-link to="/watch">
            <div class="item" >
          <span class="blue-pro">新品</span>
          <div class="item-img" >
            <img
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/f193daba3989eadac5e13ae102b91582.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>Redmi电视 MAX 98</h3>
            <p>客厅里的巨幕影院</p>
            <p class="price">零售价:19999元</p>
          </div>
        </div></router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/ecbe6a6c0d4950b78b086d7ada654e3b.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>小米全面屏电视65英寸 E65X</h3>
            <p>全面屏设计</p>
            <p class="price">3299元</p>
          </div>
        </div></router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/8b3fe3a07ef69fb4c959e39c768c7525.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>全面屏电视E43K</h3>
            <p>全面屏设计，海量内容</p>
            <p class="price">1449元</p>
          </div>
        </div></router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/f674ced205c2e81125dfd2d6659aabfc.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>小米电视4A 70英寸</h3>
            <p>大屏更享受</p>
            <p class="price">3799元</p>
          </div>
        </div></router-link>
        <router-link to="/watch">
        <div class="item">
          <div class="item-img">
            <img
              style="margin-top:24px;"
              src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/e7c6e79433c883e1a022ec21402c1679.jpg"
              alt
            >
          </div>
          <div class="item-info">
            <h3>小米小爱音响</h3>
            <p>听音乐、语音遥控家电</p>
            <p class="price">109元</p>
          </div>
        </div></router-link>
      </div>
    </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "television",
  data() {
    return {};
  },

  components: {}
};
</script>
<style lang='less' scoped>
.television{
  widows: 100%;
  height: 100%;
  background-color: #f5f5f5; 
.big-box{
  width: 1226px;
  margin:  0 auto;
  display: flex;
  flex-direction: column;
}
.box-h1{
  font-size: 25px;
  display: flex;
  padding:15px 0;
  margin-right: auto;
}
.box{
  width: 1226px;
  // display: flex;
}
.box-shang {
  display: flex;
  justify-content: center;
}
.box-xia{
  display: flex;
  justify-content: center;
}
.item {
  width: 236px;
  height: 302px;
  background-color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.6s;
  &:hover{
    transform: scale(1.08);
    box-shadow: 0px 0px 18px rgba(0,0,0,0.5);
  }
  &:nth-child(n+2){
    margin-left: 10px;
  }
}

.item span {
  display: inline-block;
  width: 67px;
  height: 24px;
  font-size: 14px;
  line-height: 24px;
}
.blue-pro {
  background-color: skyblue;
}
.red-pro {
  background-color: red;
}
.item-img img {
  width: 160px;
  height: 160px;
  box-sizing: border-box;
}
.item-info {
  h3 {
    font-size: 14px;
    color: #333333;
    line-height: 14px;
    font-weight: bold;
    :hover {
      background-color: red;
    }
  }

  p {
    color: #999999;
    line-height: 13px;
    margin: 6px auto 13px;
  }
  .price {
    color: #f20a0a;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
  }
}
}
</style>